﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SRF.Data.Cfg
{
    /// <summary>
    /// 类隐射配置信息
    /// </summary>
    public class ClassInfo
    {
        IList<PropertyInfo> _propertys = new List<PropertyInfo>();

        public string Name { get; set; }
        public string Table { get; set; }
        public bool AllMapping { get; set; }

        public IList<PropertyInfo> Propertys { get { return _propertys; } set { _propertys = value; } }
    }

    /// <summary>
    /// 属性和字段信息
    /// </summary>
    public class PropertyInfo
    {
        public string Name { get; set; }
        public string Column { get; set; }
        public bool Insert { get; set; }
        public bool Update { get; set; }
    }
    /// <summary>
    /// 自定义查询信息
    /// </summary>
    public class QueryInfo
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 语句解析方式（simple、velocity）
        /// </summary>
        public string Mode { get; set; }
        /// <summary>
        /// 语句
        /// </summary>
        public string Sql { get; set; }
    }
}
